<!--<include file="Core_Extend::template('header')" />-->

<!--{:Core_Extend::validate()}-->

<!--{script}-->
checkForm();
<!--{/script}-->

	<div class="container_12">
		<ul class="breadcrumb">
			<li><a href="<!--{:__APP__}-->" title="<!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>-->"><!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Q::U('home://spaceadmin/index')}-->"><!--<lang package='Template'>-->用户资料<!--</lang>--></a> <span class="divider">/</span></li>
			<li><!--<lang package='Template'>-->转账<!--</lang>--></li>
		</ul>
	</div>
	
	<div class="container_12 container_box">
		<!--<include file="spaceadmin+menu" />-->
		
		<div class="grid_12">
			<!--<include file="spaceadmin+ratingmenu" />-->

			<table class="table table-bordered">
				<thead>
					<tr>
						<th><!--<lang package='Template'>-->积分类型<!--</lang>--></th>
						<th><!--<lang package='Template'>-->积分数量<!--</lang>--></th>
					</tr>
				</thead>
				<tbody>
					<!--<foreach for=arrAvailableExtendCredits key=nAvailableExtendCredit value=arrAvailableExtendCredit>-->
					<tr>
						<td><!--{$arrAvailableExtendCredit['title']}--></td>
						<td><span class="badge <!--{if $nAvailableExtendCredit==2}-->badge-success<!--{/if}-->"><!--{$arrUserInfo['usercount_extendcredit'.$nAvailableExtendCredit]}--></span></td>
					</tr>
				</tbody>
				<!--</foreach>-->
			</table>

			<p><h5><!--<lang package='Template'>-->我要兑换<!--</lang>--></h5></p>
			<form id="exchangeForm" name="exchangeForm" method="post" action="<!--{:Q::U('home://spaceadmin/do_exchange')}-->" class="validate">
				<table class="table" style="width:100%;">
					<tr>
						<td><!--<lang package='Template'>-->兑换<!--</lang>--></td>
						<td>
							<select name="from_credits" id="from_credits" class="span3">
								<option value="">-- <!--<lang package='Template'>-->待兑换的积分<!--</lang>--> --</option>
								<!--<foreach for=arrAvailableExtendCredits key=nAvailableExtendCredit value=arrAvailableExtendCredit>-->
								<!--{if $arrAvailableExtendCredit['allowexchangeout']==1}-->
								<option value="<!--{$nAvailableExtendCredit}-->"><!--{$arrAvailableExtendCredit['title']}--></option>
								<!--{/if}-->
								<!--</foreach>-->
							</select>&nbsp;<!--<lang package='Template'>-->兑换<!--</lang>-->&nbsp;<!--<lang package='Template'>-->为<!--</lang>-->&nbsp;
							<select name="to_credits" id="to_credits" class="span3">
								<option value="">-- <!--<lang package='Template'>-->需要兑换成的积分<!--</lang>--> --</option>
								<!--<foreach for=arrAvailableExtendCredits key=nAvailableExtendCredit value=arrAvailableExtendCredit>-->
								<!--{if $arrAvailableExtendCredit['allowexchangein']==1}-->
								<option value="<!--{$nAvailableExtendCredit}-->"><!--{$arrAvailableExtendCredit['title']}--></option>
								<!--{/if}-->
								<!--</foreach>-->
							</select>
						</td>
						<td width="300">
						<!--<lang package='Template'>-->兑换后最低余额<!--</lang>-->&nbsp;<!--{$nExchangeMincredits}-->
						</td>
					</tr>
					<tr>
						<td><!--<lang package='Template'>-->兑换数量<!--</lang>--></td>
						<td><input type="text" name="exchange_amount" id="exchange_amount" class="span3" value="0" required title="<!--<lang package='Template'>-->兑换的数量不能为空<!--</lang>-->"/>
							<p class="input_errortips"></p>
						</td>
						<td>&nbsp;</td>
					</tr>
					<tr>
						<td><!--<lang package='Template'>-->登录密码<!--</lang>--><span class="red">*</span></td>
						<td><input type="password" name="password" id="password" class="span3" value="" required title="<!--<lang package='Template'>-->登录密码不能为空<!--</lang>-->"/>
							<p class="input_errortips"></p>
						</td>
						<td>&nbsp;</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
						<td colspan="2">
							<button type="submit" class="btn"><!--<lang package='Template'>-->兑换<!--</lang>--></button>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>

<!--<include file="Core_Extend::template('footer')" />-->